const log4js = require('log4js');
const log4js_configuration = require("../log4js_configuration.json");

log4js.configure(log4js_configuration, {});

const logger = log4js.getLogger('index');

logger.setLevel('info');

exports.logger = function (name) {
    const logger = log4js.getLogger(name);
    logger.setLevel('info');
    return logger;
};